package com.zl.test.restdemo.exception;

/**
 * @Author: zhang lei
 * @Describe: All things are difficult before they are easy.
 * @CreatTime: 2021-02-24-16-33
 */
public class DemoServiceException extends RuntimeException {
    private String code;
    private String message;
    private Object data;

    public DemoServiceException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public DemoServiceException(String message, String code, String message1) {
        super(message);
        this.code = code;
        this.message = message1;
    }

    public DemoServiceException(String message, Throwable cause, String code, String message1) {
        super(message, cause);
        this.code = code;
        this.message = message1;
    }

    public DemoServiceException(Throwable cause, String code, String message) {
        super(cause);
        this.code = code;
        this.message = message;
    }

    public DemoServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String code, String message1) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
        this.message = message1;
    }

    public DemoServiceException(String code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public DemoServiceException(String message, String code, String message1, Object data) {
        super(message);
        this.code = code;
        this.message = message1;
        this.data = data;
    }

    public DemoServiceException(String message, Throwable cause, String code, String message1, Object data) {
        super(message, cause);
        this.code = code;
        this.message = message1;
        this.data = data;
    }

    public DemoServiceException(Throwable cause, String code, String message, Object data) {
        super(cause);
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public DemoServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String code, String message1, Object data) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
        this.message = message1;
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
